package com.neusoft.neu24.nep.grid.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 区域网格信息
 * </p>
 *
 * @author 段静迪，duanjingdi@163.com
 * @since 2024-05-29
 */
@Getter
@Setter
@TableName("grid")
@Data
@ApiModel(value = "Grid对象", description = "区域网格信息")
public class Grid implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("网关编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("网关名称")
    @TableField("gname")
    private String gname;

    @ApiModelProperty("所属父级网关ID")
    @TableField("pid")
    private Integer pid;

    @ApiModelProperty("区域的状态")
    @TableField("status")
    private Integer status =  1;
}
